package com.bili.bili_data_api.controller;

import com.bili.bili_data_api.service.WlsService;
import com.bili.bili_data_api.vo.WlsDateVo;
import com.bili.bili_data_api.vo.WlsTypeVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("wls")
public class WlsController {

    @Autowired
    private WlsService wlsService;

    @GetMapping("wlsDate")
    public WlsDateVo getWlsDate(){
        return wlsService.getWlsDate();
    }

    @GetMapping("wlsType")
    public WlsTypeVo getWlsType(){
        return wlsService.getWlsType();
    }
}
